package org.howie.service;


import org.howie.dao.OrderDao;
import org.howie.entity.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService{

    @Autowired
    private OrderDao orderDao;

    public void addOrder(Order order) {
        orderDao.addOrder(order);
    }

    public List<Order> getOrderList() {
        return orderDao.getOrderList();
    }




}
